package com.jacobson.core.base.delegate

import android.app.Application
import android.content.Context

/**
 * ================================================
 * 用于代理 [Application] 的生命周期
 *
 * @author Wucz on 2018/7/16 8:55
 * @see AppDelegate
 * ================================================
 */
interface AppLifecycle {
    /**
     * 代理[Application.attachBaseContext]
     */
    fun attachBaseContext(base: Context)

    /**
     * 代理[Application.onCreate]
     */
    fun onCreate(application: Application)

    /**
     * 代理[Application.onTerminate]
     */
    fun onTerminate(application: Application)
}